<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page import="java.util.Vector,java.io.File,com.ejoysoft.common.Constants,com.ejoysoft.wlanyz.business.ResultsShow,com.ejoysoft.common.exception.NoRightException" %>
<%@ include file="../include/jsp/head.jsp"%>
<%
if(!globa.userSession.hasRight("10040"))
      throw new NoRightException("用户不具备操作该功能模块的权限，请与系统管理员联系！");
%>
<%
 ResultsShow  resultsshow=null;
 ResultsShow obj=new ResultsShow(globa);
 String path = "D:/FTP/";
 String strId = ParamUtil.getString(request,"strId","");
 File root = new File(path);
  Vector<String> filePath = obj.showAllFiles(root);
 
 String fileName = strId + ".jpg";
 path += fileName;
 //System.out.print(path);
 %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><%=application.getAttribute("APP_TITLE")%></title> 
<link href="../css/main.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="../include/date/popc.js"></script>
<script src="../include/js/list.js"></script>
<script language="javascript">

</script>
<style>
A {text-decoration: NONE} 
</style>
</head>


<body>
<form name=frm method=post action="user_list.jsp"> 
<table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="30"><img src="../images/ri_list.jpg" width="14" height="14" align="absbottom" />&nbsp;您现在所在的位置：<font color="#0e7cc9">任务管理 </font> &gt; 测试结果查看&gt;图片查看</td>
  </tr>
</table>


<table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
<%
if(!strId.equals("")){
 %>
  <tr>
    <td width="90%" ><img src="<%=path %>" /></td>
    <td width="10%">&nbsp; </td>
  </tr>
  <%
  }else{
  for(int i = 0; i < filePath.size(); i++){
  path = filePath.get(i);
   %>
   <tr>
    <td width="90%" ><img src="<%=path %>" /></td>
    <td width="10%">&nbsp; </td>
  </tr>
  <%
  }
  }
   %>
   <tr>
    
    <td width="90%" ><input type="button"  onclick="window.location.href='results_list.jsp';" value="返 回" class="ipt2" style="cursor:hand"/></td>
    <td width="10%"> &nbsp;</td>
    
  </tr>
   
</table>




 </form>
</body>
</html>
<%@ include file="../include/jsp/footer.jsp"%>